package com.neusoft.boot_ssm_crud.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class LoginController {

    /**
     * 首页
     * @return
     */
    @RequestMapping("/index")
    public ModelAndView indexTo()
    {
        ModelAndView modelAndView = new ModelAndView("index");
        return modelAndView;
    }

    /***
     * 登陆
     * @return
     */
    @RequestMapping("/login.do")
    public ModelAndView Login()
    {
        ModelAndView modelAndView = new ModelAndView("index");
        return modelAndView;
    }
}
